package com.example.emos.api.business.service;

import com.example.emos.api.common.PageUtils;
import com.example.emos.api.business.db.pojo.TbUser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;

public interface UserService {
    public HashMap createQrCode();

    public boolean checkQrCode(String code, String uuid);

    public HashMap wechatLogin(String uuid);

    public Set<String> searchUserPermissions(int userId);

    public HashMap searchUserSummary(int userId);

    public HashMap searchById(int userId);

    public ArrayList<HashMap> searchAllUser();

    Integer login(HashMap param);

    Integer updatePasswordByid(HashMap map);

    PageUtils SearchUserByPage(HashMap map);

    int insert(TbUser param);


    public int update(HashMap param);

    public int deleteUserByIds(Integer[] ids);

    public ArrayList<String> searchUserRoles(int userId);

    boolean isGmRole(Integer userId);

    public HashMap searchNameAndDept(int userId);

    String searchDeptManagerByid(int userId);

    String searchGmName();

    String getUsernameByAdminstrationRole();

    String getUsernameByChiefRole();

    String getUsernameByHRRole();
}
